<template>
    <div class="demo-image__preview">
  <el-image 
    style="width: 300px; height: 300px;padding:50px"
    :src="url" 
    :preview-src-list="srcList">
  </el-image>
</div>
</template>

<script>
import QRCode from 'qrcodejs2'
    var vueParam = {
        data() {
            return {
                url: '',
                srcList: [
                ]
            };
        },
        methods: {
            creatQrCode() {
                let id=this.$route.params.id;
                 this.http.post("api/Mall_turnstiles/GetQR?Only="+id,'',false).then(reslut=>{
                       if(reslut.status) 
                       {
                          this.url=reslut.data
                          this.srcList.push(reslut.data)
                       }
                    });
            },
        },
        mounted() {
            this.creatQrCode();
        },
    };
    export default vueParam;
</script>
<style lang="less" >

</style>